﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="Nomination.aspx.cs" Inherits="Nomination" Title="Nomination for Gubernatorial Appointment" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

    <script src="Scripts/Common.js" type="text/javascript" language="javascript"></script>
    <link href="StyleSheet.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="Form">
        <table width="780px">
            <tr>
                <td>
                    &nbsp;</td>
                <td colspan="2">
                    <h1>
                        Nomination for Gubernatorial Appointment</h1>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td colspan="2">
                    <hr />
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td colspan="2">
                    <asp:ValidationSummary ID="valSummary" runat="server" DisplayMode="BulletList" 
                        HeaderText="Please correct the following errors and press Submit again." 
                        CssClass="ErrorMsg" ForeColor="" />
                    <asp:Label ID="lblError" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    <h3>
                        Nominator Profile</h3>
                        <div class="Form Denote">
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    Title
                </td>
                <td>
                    <asp:TextBox ID="txtNominatorTitle" runat="server" Width="50"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="Required">
                    &nbsp;</td>
                <td>
                    First Name
                </td>
                <td>
                    <asp:TextBox ID="txtNominatorFirstName" runat="server" Width="120"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="reqNominatorFirstName" runat="server" ControlToValidate="txtNominatorFirstName" 
                        ErrorMessage="Nominator First Name is required" CssClass="ErrorMsg" 
                        ForeColor=""></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    Middle Initial
                </td>
                <td>
                    <asp:TextBox ID="txtNominatorMiddleName" runat="server" Width="60"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="Required">
                    &nbsp;</td>
                <td>
                    Last Name
                </td>
                <td>
                    <asp:TextBox ID="txtNominatorLastName" runat="server" Width="120"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="reqNominatorLastName" runat="server" ControlToValidate="txtNominatorLastName" 
                        ErrorMessage="Nominator Last Name is required" CssClass="ErrorMsg" ForeColor=""></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="Required">
                    &nbsp;</td>
                <td>
                    Email
                </td>
                <td>
                    <asp:TextBox ID="txtNominatorEmail" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="reqNominatorEmail" runat="server" ControlToValidate="txtNominatorEmail" Display="Dynamic" 
                        ErrorMessage="Nominator Email is required" CssClass="ErrorMsg" ForeColor=""></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="valEmailAddress"
                        ControlToValidate="txtNominatorEmail"	ValidationExpression=".*@.*\..*" ErrorMessage="Nominator email address is invalid." 
                        EnableClientScript="true" Runat="server" />                        
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td colspan="2">
                    <hr />
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td colspan="2">
                    <h3>
                        Nominator Organization</h3>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td colspan="2">
                    Are you submitting this nomination on behalf of an organization?
                </td>
            </tr>
            <tr>
                <td valign="top">
                    &nbsp;</td>
                <td valign="top">
                    <asp:RadioButton ID="radOrganizationYes" runat="server" Text="Yes" GroupName="Organization" />
                    <asp:RadioButton ID="radOrganizationNo" runat="server" Text="No" GroupName="Organization" />
                </td>
                <td>
                    If yes, Nominating Organization:
                    <asp:TextBox ID="txtOrganization" runat="server" Width="250"></asp:TextBox><br /><br />
                    If yes, describe your position in the organization:<br />
                    <asp:TextBox ID="txtOrganizationPosition" runat="server" Wrap="true" Width="620"
                        Height="48" TextMode="MultiLine"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td colspan="2">
                    <hr />
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td colspan="2">
                    <h3>
                        Nominee Board</h3>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    &nbsp;</td>
                <td valign="top">
                    <span class="Required" style="padding-left:8px">Nomination For</span>
                </td>
                <td>
                    <table>
                        <tr>
                            <td colspan="2">
                                Secretariats<br />
                                <select id="lstSecretariats" name="lstSecretariats" onchange="ShowBoards();"
                                    style="width: 450px">
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                Boards And Commissions<br />
                                <select id="lstBoards" name="lstBoards" style="width: 450px">
                                </select><br />
                                <asp:CustomValidator ID="vldBoards" runat="server" 
                                    ErrorMessage="You must select a board or commission" 
                                    onservervalidate="vldBoards_ServerValidate" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    Position
                </td>
                <td>
                    <asp:TextBox ID="txtPosition" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td colspan="2">
                    <br />Describe the experience, interests and other background information about 
                    this nominee that would qualify this person to serve on the Board <em>(2,000 
                    characters max)</em>.
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td colspan="2">
                    <asp:TextBox ID="txtExperience" runat="server" Wrap="true" Width="720" Height="64" MaxLength="2000"
                        TextMode="MultiLine"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td colspan="2">
                    <hr />
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td colspan="2">
                    <h3>
                        Nominee Profile</h3>
                </td>
            </tr>
            <tr>
                <td class="Required">
                    &nbsp;</td>
                <td>
                    First Name
                </td>
                <td>
                    <asp:TextBox ID="txtFirstName" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="reqFirstName" runat="server" ControlToValidate="txtFirstName" 
                        ErrorMessage="Nominee First Name is required" CssClass="ErrorMsg" ForeColor=""></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="Required">
                    &nbsp;</td>
                <td>
                    Last Name
                </td>
                <td>
                    <asp:TextBox ID="txtLastName" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="reqLastName" runat="server" ControlToValidate="txtLastName" 
                        ErrorMessage="Nominee Last Name is required" CssClass="ErrorMsg" ForeColor=""></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    Middle Initial
                </td>
                <td>
                    <asp:TextBox ID="txtMiddleInitial" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    Address
                </td>
                <td>
                    <asp:TextBox ID="txtAddress" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="Required">
                    &nbsp;</td>
                <td>
                    City
                </td>
                <td>
                    <asp:TextBox ID="txtCity" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvCity" runat="server" ControlToValidate="txtCity" ErrorMessage="City is required." />
                </td>
            </tr>
            <tr>
                <td class="Required">
                    &nbsp;</td>
                <td>
                    State
                </td>
                <td>
                    <asp:DropDownList ID="ddlState" runat="server">
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rfvState" runat="server" ControlToValidate="ddlState" ErrorMessage="State is required." />
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    Zip Code
                </td>
                <td>
                    <asp:TextBox ID="txtZipCode" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="Required">
                    &nbsp;</td>
                <td>
                    Home Phone
                </td>
                <td>
                    <asp:TextBox ID="txtPrimaryPhone" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvPrimaryPhone" runat="server" ControlToValidate="txtPrimaryPhone" ErrorMessage="Home Phone is required." />
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    Mobile Phone
                </td>
                <td>
                    <asp:TextBox ID="txtMobilePhone" runat="server"></asp:TextBox>
                    
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    Work Phone
                </td>
                <td>
                    <asp:TextBox ID="txtWorkPhone" runat="server"></asp:TextBox>
                    
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    Fax Number
                </td>
                <td>
                    <asp:TextBox ID="txtFaxNumber" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="Required">
                    &nbsp;</td>
                <td>
                    Email
                </td>
                <td>
                    <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvEmail" runat="server" ControlToValidate="txtEmail" ErrorMessage="Email is required."  Display="Dynamic" />
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1"
                        ControlToValidate="txtEmail"	ValidationExpression=".*@.*\..*" ErrorMessage="Nominee email address is invalid." 
                        EnableClientScript="true" Runat="server" />                        
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td colspan="2">
                    <hr />
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td colspan="2">
                    <h3>
                        Nominee Employment</h3>
                </td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td>Resume (Microsoft Word or Adobe Acrobat PDF format)</td>
                <td>
                    <asp:FileUpload ID="ResumeUploader" runat="server" />
                    <asp:CustomValidator 
                        ID="vldResume" runat="server" 
                        ControlToValidate="ResumeUploader" 
                        ErrorMessage="Only Word (.doc/.docx) or PDF formats are accepted" 
                        onservervalidate="vldResume_ServerValidate"/>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    Employer Name
                </td>
                <td>
                    <asp:TextBox ID="txtEmployerName" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    Job Title
                </td>
                <td>
                    <asp:TextBox ID="txtJobTitle" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    Employer Address
                </td>
                <td>
                    <asp:TextBox ID="txtEmployerAddress" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    Employer City
                </td>
                <td>
                    <asp:TextBox ID="txtEmployerCity" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    EmployerState
                </td>
                <td>
                    <asp:DropDownList ID="ddlEmployerState" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    Employer Zip Code
                </td>
                <td>
                    <asp:TextBox ID="txtEmployerZipCode" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td colspan="2">
                    <hr />
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td colspan="2">
                    <h3>
                        Optional</h3>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    Nominee Gender
                </td>
                <td>
                    <asp:RadioButton ID="radGenderMale" runat="server" Text="Male" GroupName="Gender" />
                    <asp:RadioButton ID="radGenderFemale" runat="server" Text="Female" GroupName="Gender" />
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    Date of Birth
                </td>
                <td>
                    <asp:TextBox ID="txtDOB" runat="server"></asp:TextBox>
                    <asp:CompareValidator id="valDOB" runat="server" 
                        Type="Date" Operator="DataTypeCheck" ControlToValidate="txtDOB" 
                        ErrorMessage="Please enter a valid date of birth." CssClass="ErrorMsg" 
                        ForeColor=""></asp:CompareValidator>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    Country of Birth
                </td>
                <td>
                    <asp:TextBox ID="txtPlaceOfBirth" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    Ethnicity
                </td>
                <td>
                    <asp:DropDownList ID="ddlEthnicity" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    Education
                </td>
                <td>
                    <asp:TextBox ID="txtEducation" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td colspan="2">
                    <hr />
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                </td>
                <td class="ErrorMsg">Please review your information thoroughly before clicking submit.</td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                </td>
                <td>
                    <asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClick="btnSubmit_Click" />
                    
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
